<div class="form">

<?php
    /**
     * @var $form CActiveForm
     */
    $form=$this->beginWidget('CActiveForm', array(
	'id'=>'song-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'singer'); ?>
		<?php echo $form->textField($model,'singer',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'singer'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'body'); ?>
		<?php echo $form->textArea($model,'body',array('rows'=>12, 'cols'=>80)); ?>
		<?php echo $form->error($model,'body'); ?>
	</div>
    <div class="row">
        <?php echo $form->labelEx($model,'guitar_tabs'); ?>
        <?php echo $form->textArea($model,'guitar_tabs',array('rows'=>8, 'cols'=>80)); ?>
        <?php echo $form->error($model,'guitar_tabs'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model,'embed_code'); ?>
        <?php echo $form->textArea($model,'embed_code',array('rows'=>8, 'cols'=>80)); ?>
        <?php echo $form->error($model,'embed_code'); ?>
    </div>
    <div class="row">
        <?php echo $form->checkBox($model,'is_trade').' <b>Thu phí?</b>'; ?>
        <?php //echo $form->labelEx($model,'is_trade'); ?>
        <?php echo $form->error($model,'is_trade'); ?>
    </div>

	<div class="row">
		<?php echo $form->labelEx($model,'is_validated'); ?>
		<?php echo $form->listBox($model,'is_validated',array(1=>"Ko Kiểm duyệt",2=>"Kiểm duyệt"),array('size'=>1)); ?>
		<?php echo $form->error($model,'is_validated'); ?>
	</div>
    <div class="row">
		<?php echo $form->labelEx($model,'status'); ?>
		<?php echo $form->listBox($model,'status',array(1=>"Hoạt động",2=>"Không hoạt động"),array('size'=>1)); ?>
		<?php echo $form->error($model,'status'); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Đăng' : 'Lưu'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->